﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<hsgsSHXX.Model.gcpcscc>
@using MvcContrib.UI.Grid;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>南站广场派出所车次</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    
    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSearch").button();
            $("#btnSearch2").button();
            $("#btnSearch").bind("click", function () {
                funSearch();
            });
            $("#btnSearch2").bind("click", function () {

                var txtkey = $("#txtkey").val();
                if (txtkey == "") {
                    alert("请输入关键字");
                    return false;
                }
                else {
                    txtkey = escape(txtkey);

                    $("#gcpcsccFrm").attr("src", "/Social/gcpcscc?txtkey=" + txtkey);
                }
            });
            $("#txtTime1").bind("click", function () {
                funCalendar('yyyy-MM-dd HH:mm')
            });
            $("#txtTime2").bind("click", function () {
                funCalendar('yyyy-MM-dd HH:mm')
            });
            //            $("#txtBeginTime").val($("#hidBeginTime").val());
            //            $("#txtEndTime").val($("#hidEndTime").val());
        });
        function funCalendar(fmt) {
            WdatePicker({
                readOnly: true,
                dateFmt: fmt
            });
        }
        function funSearch() {
            var txtlsgs = $("#txtlsgs").val();
            txtlsgs = escape(txtlsgs);
            var txtcp = $("#txtcp").val();
            txtcp = escape(txtcp);
            var txtBegin = $("#txtBegin").val();
            txtBegin = escape(txtBegin);
            var txtEnd = $("#txtEnd").val();
            txtEnd = escape(txtEnd);
            var txtzzw = $("#txtzzw").val();
            var txtTime1 = $("#txtTime1").val();
            var txtTime2 = $("#txtTime2").val();
            var txtkey = "";

            $("#gcpcsccFrm").attr("src", "/Social/gcpcscc?txtlsgs=" + txtlsgs + "&txtcp=" + txtcp + "&txtBegin=" + txtBegin + "&txtEnd=" + txtEnd + "&txtzzw=" + txtzzw + "&txtTime1=" + txtTime1 + "&txtTime2=" + txtTime2 + "&txtkey=" + txtkey);

        }
    </script>

</head>
<body>

    <table width="100%" border="1" cellspacing="5" cellpadding="5" >
    @*<tr>
    <td colspan="5" align="right"><a href="/Index/Index" target="_blank">社会信息查询</a></td>
    </tr>*@
  <tr>
    <td>隶属公司：@Html.TextBox("txtlsgs", "", new { @style = "width:80px;", @name = "txtFSource" })</td>
    <td>车牌：@Html.TextBox("txtcp", "", new { @style = "width:60px;", @name = "txtFSource" })</td>
    <td>运行线路：@Html.TextBox("txtBegin", "", new { @style = "width:40px;", @name = "txtFSource" })-@Html.TextBox("txtEnd","", new { @style = "width:40px;", @name = "txtFSource" })</td>
    <td>总座位：@Html.TextBox("txtzzw", "", new { @style = "width:20px;", @name = "txtFSource" })</td>
    <td>发车时间：@Html.TextBox("txtTime1", "", new { @style = "width:180px;", @class = "Wdate" })&nbsp;至：&nbsp;@Html.TextBox("txtTime2", "", new { @style = "width:180px;", @class = "Wdate" })</td>
    <td><input type="button" name="btnSearch" id="btnSearch" value="搜索" /></td>
  </tr>
 
</table >
<table width="100%" border="1" cellspacing="5" cellpadding="5">
<tr>
<td width="240">关键字：@Html.TextBox("txtkey", "", new { @style = "width:120px;", @name = "txtFSource" })</td><td><input type="button" name="btnSearch2" id="btnSearch2" value="模糊搜索" /></td>
</tr>
</table>
<h5>南站广场派出所车次</h5>
<iframe src="@Url.Action("gcpcscc")" id="gcpcsccFrm" name="nzlsj" scrolling="auto" style="width: 99%; height: 100%;" frameborder="0"></iframe>


</body>
</html>
